import request from "@/utils/request";
const BASE_URL = "wblog_user";
export function login(username, password) {
  return request({
    url: `/${BASE_URL}/admin/login`,
    method: "post",
    data: {
      username,
      password
    }
  });
}

export function getUserInfo() {
  return request({
    url: `${BASE_URL}/user/info`,
    method: "get"
  });
}
export function logout(token) {
  return request({
    url: `${BASE_URL}/user/logout`,
    method: "post",
    data: {
      token
    }
  });
}
